package com.ewing.busi.web.dao;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.ewing.busi.web.model.WebBlockVar;
import com.ewing.core.jdbc.BaseDao;

/**
 * 网站块关联参数DAO
 * 
 * @author tansonlam
 * @createDate 2016年3月3日
 * 
 */
@Repository("webBlockVarDao")
public class WebBlockVarDao {

	@Resource
	private BaseDao baseDao;

	/**
	 * 查询
	 * 
	 * @param shopId
	 * @param groupKeys
	 * @return
	 */
	public WebBlockVar findBlockVar(Integer shopId, Integer blockVarId) {
		StringBuilder query = new StringBuilder();
		query.append(" and shop_id = ").append(shopId);
		query.append(" and id = ").append(blockVarId);
		return baseDao.findOne(query.toString(), WebBlockVar.class);
	}
}
